package com.example.springbootredistemplate.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author jiangwz
 * @create 2021/2/24.
 */
//@RestController
@Controller
public class RedisController {

    @Autowired
    private StringRedisTemplate redisTemplate;

    @GetMapping("/test")
    public String test(){

        return "test1";
    }
}
